package com.fuqiang.nightshopadmin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fuqiang.nightshopumsmodel.entity.UmsMenu;
import com.fuqiang.nightshopumsmodel.entity.UmsRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author fuqiang
 * @since 2020-04-14
 */
public interface IUmsRoleMapper extends BaseMapper<UmsRole> {
    /**
     * 根据管理员id获取菜单
     * @param adminId
     * @return
     */
    List<UmsMenu> getMenuList(@Param("adminId") Long adminId);

    /**
     * 获取相关角色菜单列表
     * @param roleId
     */
    List<UmsMenu> getMenuListByRoleId(@Param("roleId")Long roleId);
}
